package com.emokili.ewa.frame.controller.v1;

import com.emokili.ewa.common.utils.R;
import com.emokili.ewa.core.frame.service.PlayListImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1/frame/image")
public class PlayListImageController {

    @Autowired
    private PlayListImageService playListImageService;


    @RequestMapping("/favorite/{imageId}/{favorite}")
    @ResponseBody
    public R favorite(@PathVariable String imageId,@PathVariable String favorite){
        playListImageService.favorite(imageId,favorite);
        return R.ok();
    }

}
